/*
 * SocialCommitment.java
 *
 * Created on 7 de Dezembro de 2007, 00:54
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.ontoscheduler.concepts;

import java.util.Collection;

import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.Individual;
import java.util.Iterator;

/**
 *
 * @author joaoolavo
 */
public class SocialCommitment extends IntentionalMoment {
    
    /** Creates a new instance of SocialCommitment */
    public SocialCommitment(OntModel m) {
        setConcept(m, "SocialCommitment");
    }

    public int setAgent(Individual sc, Collection a){
        return addPropertyValues("externalDependency", sc, a, OBJECT_PROPERTY);
    }
    
    public Iterator getAgents(Individual sc){
        return getPropertyValues("externalDependency", sc);
    }
}
